package TouristManagementBO.TransportSystem;

import java.util.Random;

import TouristManagement.*;

public class TransportSystemImpl extends TransportSystemPOA{
	
	String nomSystem;
		
	public TransportSystemImpl(String nomSystem) {
		super();
		this.nomSystem = nomSystem;
	}

	@Override
	public short getTrafficTime(CoordsGPS init, CoordsGPS dest) {
		//retourner un valeur random entre 0 et 100 (minutes)
		Random rd = new Random();
		return (short) (rd.nextInt(100)+1);
		
	}

	@Override
	public String nomSystem() {		
		return nomSystem;
	}
}
